﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LiftBill;

namespace LIftBillService
{
    /// <summary>
    /// 账单信息接口
    /// </summary>
    public interface IBillService
    {
        /// <summary>
        /// 获取所有的账单信息
        /// </summary>
        /// <returns></returns>
        Bill[] GetAllBill();
        /// <summary>
        /// 根据ID获取账单信息
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
          Bill GetBill(string ID);

        /// <summary>
        /// 根据时间段获取账单信息列表
        /// </summary>
        /// <param name="fromTime">起始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <returns></returns>
        Bill[] GetBill(DateTime fromTime, DateTime endTime);

        /// <summary>
        /// 保存账单信息
        /// </summary>
        /// <param name="bill"></param>
        void Save(Bill bill);
        /// <summary>
        /// 修改账单信息
        /// </summary>
        /// <param name="bill"></param>
        void Update(Bill bill);

    }
}
